<template>
  <div class="need">
    <h1>按需定制</h1>
    <ul class="need-list">
      <li v-for="(item, index) in needList" :key="index">
        <img :src="item.imgUrl" alt="item.title" />
        <p>{{ item.title }}</p>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      needList: [
        {
          imgUrl: require("../../assets/images/need1.png"),
          title: "白成一道光",
        },
        {
          imgUrl: require("../../assets/images/need2.png"),
          title: "年年十八岁",
        },
        {
          imgUrl: require("../../assets/images/need3.png"),
          title: "逃离月球表面",
        },
        {
          imgUrl: require("../../assets/images/need4.png"),
          title: "干掉草莓鼻",
        },
        {
          imgUrl: require("../../assets/images/need5.png"),
          title: "我要水光肌",
        },
        {
          imgUrl: require("../../assets/images/need6.png"),
          title: "拜拜啦敏感",
        },
      ],
    };
  },

  components: {},

  computed: {},

  mounted() {},

  methods: {},
};
</script>

<style lang="less" scoped>
.need {
  width: 100%;

  h1 {
    margin-left: 34px;
    font-size: 32px;
    font-weight: 600;
  }

  .need-list {
    width: 100%;
    height: 605px;
    display: flex;
    justify-content: space-between;
    align-content: space-between;
    flex-wrap: wrap;
    padding: 56px 30px 90px 30px;

    li {
      width: 33%;
      text-align: center;

      img {
        width: 134px;
        height: 134px;
      }

      p {
        font-size: 24px;
        color: #565656;
        line-height: 78px;
      }
    }
  }
}
</style>
